<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
	<%@ taglib  uri="/WEB-INF/tlds/authorizetag.tld" prefix="px"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Bootstrap core CSS -->
<link href="/admin/public/bootstrap.min.css" title="" rel="stylesheet" />
<link rel="stylesheet" href="/admin/css/plugins/toastr/toastr.min.css" />
<link href="/admin/font-awesome/css/font-awesome.min.css"
	rel="stylesheet">
<!-- 时间控件样式 -->
<link
	href="/admin/css/plugins/datetimepicker/bootstrap-datetimepicker.min.css"
	rel="stylesheet" media="screen">
<link href="/admin/public/animate.css" rel="stylesheet">
<link rel="stylesheet" href="/admin/public/inspinia.css" />
<link rel="stylesheet" href="/admin/css/templet_form.css" />

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
	<script src="/admin/public/html5shiv.min.js"></script>
	<script src="/admin/public/respond.min.js"></script>
<![endif]-->
<title>教练详情管理</title>
<style>
.tr_active {
	background: #FEF388 !important;
}
.right_map_box {
	margin-left: 20px;
	width: 33%;
	float: left;
}
.right_map_box {
	float: right;
}
.tab_list {
	overflow: hidden;
	border-bottom: 1px solid #ddd;
}
.tab_box {
	overflow: hidden;
	/*display: inline-block;*/
}
.gj_search {
	display: none;
}
.form-control {
	margin-left: -40px;
}
div.top_tab_box {
	padding: 10px 0;
}
.url_file{
	margin-left: 15%;
}
</style>
</head>
<body>
	<div id="wrapper" class="container">
		<!--标编辑-->
		<div id="biaobj" class=" wrapper wrapper-content animated fadeInRight">
			<h3>教练信息详情页</h3>
			<form class="form-horizontal" id="biao" enctype="multipart/form-data"
							novalidate="novalidate">
							<a onclick="savePact();" class="btn btn-w-m btn-warning" style="float:right;margin-right:10px;">保存教练信息</a>
			<div class="right_box" id="right_box">
				<div class="top_tab_box"
					style="min-height: 300px; padding-bottom: 0px; margin-top: 20px;">
					<div class="active">
							<input type="hidden" name="userId" value="${userId }">
							
							<div class="form-group">
								<label class="col-lg-2 control-label">姓名:</label>
								<div class="col-lg-6">
									<input type="text" id="realname" name="realname" value="${realname }" class="form-control"  />
								</div>
							</div>
							<!-- 头像图片上传 -->
							<div class="form-group">
								<label class="col-lg-2 control-label">头像:</label>
								<div class="url_file">
									<img src="${userUrl }" width="10px;" height="40px;" />
									<input type="file" id="userUrl" name="userUrl" style="margin-left: 10px;" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-lg-2 control-label">性别:</label>
								<div class="col-lg-6" style="margin-top: 5px;">
						            <input type="radio" name="sex" value="0" ${(sex=='0')?'checked' : ''}/>&nbsp;女&nbsp;&nbsp;&nbsp;&nbsp;
						            <input type="radio" name="sex" value="1" ${(sex=='1')?'checked' : ''}/>&nbsp;男&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"></span>
                                </div>
							</div>
							<div class="form-group">
								<label class="col-lg-2 control-label">手机号/电话:</label>
								<div class="col-lg-6">
									<input   type="text" id="telenumber" name="telenumber" value="${telenumber }" class="form-control" />
								</div>
							</div>
								<input type="hidden" id="checkTF" value="0">
					</div>
				</div>
				</form>
			</div>
		</div>
	<script src="/admin/public/jquery-1.11.3.js"></script>
	<script src="/admin/public/bootstrap.min.js" type="text/javascript"></script>
	<script src="/admin/js/plugins/lhgdialog/lhgdialog.js"></script>
	<!-- 弹出警示框 -->
	<script src="/admin/js/plugins/toastr/toastr.min.js"></script>
	<!-- 弹出确认框 -->
	<script src="/admin/public/artDialog4.1.7/artDialog.js?skin=blue"></script>
	<script src="/admin/public/artDialog4.1.7/plugins/iframeTools.js"></script>
	<!-- 时间控件样式 -->
	<script src="/admin/js/plugins/datetimepicker/bootstrap-datetimepicker.min.js"></script>
	<script src="/admin/js/plugins/datetimepicker/bootstrap-datetimepicker-update.min.js"></script>
	<script src="/admin/js/plugins/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
	<script src="/admin/js/templet_form.js"></script>
	<script src="/admin/js/jquery.form.min.js"></script>
	<script type="text/javascript">
		function savePact(){
			$('#biao').ajaxSubmit({
			       url:"/admin/Employee/upEmployee",
			       type:"post",
			       enctype:"multipart/form-data",
			       dataType:"json",
			       success:function(data){
			    	   $('#ifr',window.parent.document).attr('src','/admin/Employee/emlist');
			       },
			       error:function(data){
			    	   alert("请上传正确的图片！");
			       }
			    });
		}
	</script>
</body>
</html>